import request from '@/utils/request'

// 查询ppz投诉列表
export function listAComplaint(query) {
  return request({
    url: '/system/aComplaint/list',
    method: 'get',
    params: query
  })
}

// 查询ppz投诉详细
export function getAComplaint(id) {
  return request({
    url: '/system/aComplaint/' + id,
    method: 'get'
  })
}

// 新增ppz投诉
export function addAComplaint(data) {
  return request({
    url: '/system/aComplaint',
    method: 'post',
    data: data
  })
}

// 修改ppz投诉
export function updateAComplaint(data) {
  return request({
    url: '/system/aComplaint',
    method: 'put',
    data: data
  })
}

// 删除ppz投诉
export function delAComplaint(id) {
  return request({
    url: '/system/aComplaint/' + id,
    method: 'delete'
  })
}

// 逻辑删除ppz投诉
export function logicDelAComplaint(id) {
  return request({
    url: '/system/aComplaint/logicDel/' + id,
    method: 'delete'
  })
}
